//
//  AppDelegate.m
//  DVActivity
//
//  Created by pan Shiyu on 13-4-7.
//  Copyright (c) 2013年 pan Shiyu. All rights reserved.
//

#import "AppDelegate.h"
#import "DVTabbarController.h"

#import "Flurry.h"

@implementation AppDelegate

- (void)startStatics {
    //更详细的统计项可以参看 wiki  http://bsr1983.iteye.com/blog/1747011
    
    [Flurry startSession:@"FGK9MGNQSFRN6N5M38MD"];
}

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    
    DVTabbarController* tab = [[DVTabbarController alloc] init];
    self.window.rootViewController = tab;
    self.window.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
    [self.window makeKeyAndVisible];
    
    [self startStatics];
    
    return YES;
}

@end
